<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="myTags" tagdir="/WEB-INF/tags/components" %>
<%@ attribute name="photo" required="true" type="beans.Photo" rtexprvalue="true" %>

<!-- Author: Minh-Tuan Ta -->

<div class="fullPhoto">
	<div class="photoPicture">
		<a href="ViewPhoto?photoID=${photo.contentID }"><img src="${photo.photoPath }" /></a>
	</div>
	<div class="photoNav">
		<c:if test="${album.userID == User.userID }">
			<form action="DeletePhoto" method="post">
				<input type="hidden" name="photoID" value="${photo.contentID }" />
				<input type="submit" name="submit" value="Delete Photo" />
			</form>
		</c:if>
		<form action="SetProfilePicture" method="post">
			<input type="hidden" name="photoID" value="${photo.contentID }" />
			<input type="submit" name="submit" value="Set Profile Picture" />
		</form>
	</div>
</div>